package cc.vicp.djx314.msing.dao.base;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;

@SuppressWarnings("deprecation")
public class BaseDaoImpl implements IBaseDao {
	public final Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	protected SqlMapClientTemplate sqlMapClientTemplate;

	@Override
	public Object insertNoParam(String statementName) {
		return sqlMapClientTemplate.insert(statementName);
	}

	@Override
	public Object insert(String statementName, Object parameterObject) {
		return sqlMapClientTemplate.insert(statementName, parameterObject);
	}
}